import axios from "./axios";

export const getMenu = (params) => {
    return axios.request({
        url: '/permission/getMenu',
        method: 'post',
        data: params
    })
}

export const getOperateFormLabel = (param) => {
    return axios.request({
        url: '/permission/getOperateFormLabel',
        method: 'post',
        data: param
    })
}


export const getData = () => {
    return axios.request({
        url: '/home/getData',
        method: 'get'
    })
}

export const listUser = (params) => {
    return axios.request({
        url: 'api/user/list',
        method: 'get',
        params
    })

}